package com.acoffee.maven.mapper;

import com.acoffee.maven.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author acoffee
 * @create 2021-05-11 19:12
 */
public interface UserMapper {
    /**
     * 通过telephoneAndPassword查询用户对象
     * @param telephone
     * @param password
     * @return
     */
    public User selectUserByTelephone(@Param("telephone") String telephone, @Param("password") String password);

    /**
     * 分页查询
     * @param condition
     * @return
     */
    public List<User> selectUsersByUser(User condition);

    /**
     * 增加用户
     * @param user
     */
    public void insertUser(User user);
}
